import request from "@/utils/request";

export function sku_index(params) {
  return request({
    url: "/sku/index",
    method: "get",
    params
  });
}

export function goods_delete(data) {
  return request({
    url: "/goods/delete",
    method: "post",
    data: data
  });
}

export function sku_changeStatus(data) {
  return request({
    url: "/sku/changeStatus",
    method: "post",
    data: data
  });
}

export function goods_changeStatus(data) {
  return request({
    url: "/goods/changeStatus",
    method: "post",
    data: data
  });
}

export function sku_changeField(data) {
  return request({
    url: "/sku/changeField",
    method: "post",
    data: data
  });
}

export function sku_batchStatus(data) {
  return request({
    url: "/sku/batchStatus",
    method: "post",
    data: data
  });
}

export function sku_isbathcStaus(data) {
  return request({
    url: "sku/batchGoods",
    method: "post",
    data: data
  });
}



export function sku_info(params) {
  return request({
    url: "/sku/info",
    method: "get",
    params
  });
}

export function sku_edit(data) {
  return request({
    url: "/sku/edit",
    method: "post",
    data: data
  });
}

export function sku_volume(data) {
  return request({
    url: "/sku/volume",
    method: "post",
    data: data
  });
}

export function export_skulog_index(params) {
  return request({
    url: "export/export_SKU",
    method: "post",
    responseType: "blob",
    params
  });
}

//
export function skulog_index(params) {
  return request({
    url: "/skulog/index",
    method: "get",
    params
  });
}

//体积重量--列表

export function order_sku_index(params) {
  return request({
    url: "/orderList/getOrderListGoods",
    method: "get",
    params
  });
}
